#define _CRT_SECURE_NO_WARNINGS 1
#include"SList.h"

void test01()
{

	SLTNode* plist = NULL;
	SLTPushBack(&plist, 100);
	SLTPrint(plist);
	SLTPushBack(&plist, 88);
	SLTPrint(plist);

	SLTPushFront(&plist,99);
	SLTPrint(plist);

	SLTPopBack(&plist);
	SLTPrint(plist);

	SLTPopFront(&plist);
	SLTPrint(plist);

	SLTNode* find =  SLTFind(plist, 100);
	SLTPrint(find);

	SLTInsert(&plist,find,200);
	SLTPrint(plist);

	SLTInsertAfter(find,300);
	SLTPrint(plist);

	SLTErase(&plist, find);
	SLTPrint(plist);

	SLTEraseAfter(find);
	SLTPrint(plist);

	//SLTDestory(&plist);
	//SLTPrint(plist);
}

int main()
{
	test01();
	return 0;
}